body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}
.panel-title {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
canvas {
    border: 1px solid #000;
    margin-top: 10px;
    background-color: white;
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
button {
    padding: 8px 12px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
}
button:hover {
    background-color: #45a049;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
select, input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.speed-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.state-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.info-item {
    background-color: #e9e9e9;
    padding: 10px;
    border-radius: 4px;
}
.info-label {
    font-weight: bold;
    color: #555;
}
.tab-container {
    display: flex;
    margin-bottom: 10px;
}
.tab {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}
.tab.active {
    background-color: #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
    margin-bottom: -1px;
}
.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    background-color: #f9f9f9;
}
.tab-content.active {
    display: block;
}
textarea {
    width: 100%;
    height: 150px;
    font-family: monospace;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.memory-view {
    font-family: monospace;
    white-space: pre;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.command-history {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
}
.command {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}
.hex-view {
    font-family: monospace;
}
.binary-view {
    font-family: monospace;
    letter-spacing: 2px;
}